efform_onload = function() {
	
};

// 查询
button_query_onclick = function() {
	efgrid.submitInqu("ef_grid_result", "ZM", "ZMCX01", "query");
};
// 新增
button_insert_onclick = function() {
	if (isSelected("ef_grid_result") == 0)
		return;
	efgrid.submitForm("ef_grid_result", "ZM", "ZMCX01", "insert", true);
};
// 修改
button_update_onclick = function() {
	var grid = isSelected("ef_grid_result");
	if (grid == 0)
		return;


	efgrid.submitForm("ef_grid_result", "ZM", "ZMCX01", "update", true);
};
// 删除
button_delete_onclick = function() {
	var grid = isSelected("ef_grid_result");
	if (grid == 0)
		return;

	EFConfirm('你确认要删除吗?', '确认框',
			function(r) {
				if (r)
					efgrid.submitForm("ef_grid_result", "ZM", "ZMCX01",
							"delete", true);
			});
};
